package Test;

public class Kids extends ManKind{
    private int yearsOld;

   public Kids(int sex, int salary) {
        super();
    }
    @Override
    public void employeed() {
        System.out.println("Kids should study and no job");
    }

    public void setYearsOld(int yearsOld) {
        this.yearsOld = yearsOld;
    }

    public void showInfo() {
        System.out.println("年龄:"+yearsOld);
    }
}
